package ch.electronet.wjw.web.actions.ajax.tree;

import net.sf.json.JsonConfig;

public class GetCategoriesAction extends GetNodesAction {

	private static final long serialVersionUID = 1L;

	@Override
	protected Object doJson(JsonConfig config) {
		config.registerJsonBeanProcessor(Category.class, nodeProcessor);
		return Category.getById(getNodeId()).getChildren();
	}
}
